var sPortletName = document.getElementById('txtRequest').value;
var sPortletImg= sPortletName + "/html/quanlykhoangsan/img/";
var sPortletJSP = sPortletName + "/html/quanlykhoangsan/"; 
var sPortletReadExcel = sPortletName + "/html/quanlykhoangsan/excel/"; 
var sNameSpace = "<portlet:namespace/>";
var sNameSpaceAlias = $('#hiddenNamespace').val();
var sURL = $('#txtRequest').val() + "/Config/config_editor_ks.xml";
var sURLField = $('#txtRequest').val() + "/Config/alias_ks.xml";
var sStyleSLD = $('#txtRequest').val() + "/Styles/sld_feature.xml";
var sJSPath = sPortletName + "/js/";
var JsFiles = [ "jquery.form.js", "map/gisBase.js", "initAnGiang.js", "asset/asset.js", 
                "tool/treeviewTool.js", "search/searchAttr.js","common.js","actions.js", 
                "structDefine.js", "graphict.js","tool/cookiesTool.js", 
                "readData.js", "map/gisExtension.js", "map/gisLoad.js", "map/gisLayersTool.js", "initCPM.js", "map/gisToolMap.js", 
                "map/gisSnapTool.js", "map/gisThematic.js", "tool/vectorTool.js", "tool/pageNavigation.js", "tool/progress.js",
                "tool/cursor.js", "tool/tabsQuyHoach.js", "tool/label_tooltip.js", "asset/shp/loadSHP.js", "asset/profile.js", 
                "asset/excel/excelTool.js", "asset/excel/importDCP.js", "asset/excel/importDVP.js","asset/quanlyks.js",
                "asset/commongis.js",
                "charts/charts.js", "izzyColor.js", "ui/common.js","search/searchAttributes.js","search/scanActions.js"]; 
				// "define.js", "map/gisBase.js", "asset/asset.js", "search/searchAttr.js", "tool/treeviewTool.js",  
var scriptTags = new Array(JsFiles.length);
var len = JsFiles.length;
for ( var i = 0; i < len; i++) {
	scriptTags[i] = "<script type='text/javascript' src='" + sJSPath
			+ JsFiles[i] + "'></script>";
}
if (scriptTags.length > 0) {
	document.write(scriptTags.join(""));
}
// dia chi IP
var IP_Addr = $('#txtDiaChiIP').val();
/******* end function *********/
